home *** CD-ROM | disk | FTP | other *** search
- '-------------------------------------------------------------------------------------
- ' Program to create the virtual directory during installation
- ' Author : ASPFusion Support
- ' Company : Advanced Communications
- '-------------------------------------------------------------------------------------
- Option Explicit
- on error resume next
- dim iisObj2,VDir
- dim oArgs
- set iisObj2 = GetObject("IIS://localhost/w3svc/1/ROOT")
- Set oArgs = WScript.Arguments
- if (oArgs.Count < 1) then
- WScript.Echo "Invalid no of arguments" & CStr(oArgs.Count)
- else
- VDir = trim(oArgs(0))
- iisObj2.Delete "IIsWebVirtualDir", VDir
- if (Err.number <> 0) then
- Wscript.echo "unable to delete the virtual directory " + VDir + "Error is " + Err.description
- end if
- end if
- set iisObj2 = Nothing
-